#include "player_statistics.h"
#include "gamestatistic.h"

PlayerStatistics::PlayerStatistics(){
    gameStats = std::vector<GameStatistic>();
    gamesPlayed=0;
    gamesPitched=0;
}

PlayerStatistics::~PlayerStatistics(){
}

std::vector<GameStatistic> PlayerStatistics::getGameStatistics(){
    return PlayerStatistics::gameStats;
}

GameStatistic PlayerStatistics::getPriorHistory(){
    return priorHistory;
}

void PlayerStatistics::addGameStatistic(GameStatistic gs){
    gameStats.push_back(gs);
}

void PlayerStatistics::setPriorHistory(GameStatistic* gs){
    priorHistory=*gs;
}


int PlayerStatistics::getGamesPlayed(){
    return gamesPlayed;
}

void PlayerStatistics::setGamesPlayed(int inputGamesPlayed){
    gamesPlayed=inputGamesPlayed;
}

void PlayerStatistics::incrementGamesPlayed(){
    gamesPlayed++;
}

int PlayerStatistics::getGamesPitched(){
    return gamesPitched;
}

void PlayerStatistics::setGamesPitched(int inputGamesPitched){
    gamesPitched=inputGamesPitched;
}

void PlayerStatistics::incrementGamesPitched(){
    gamesPitched++;
}

void PlayerStatistics::setTotals(GameStatistic *gs){
    totals=*gs;
}
